#coding=utf-8
from multiprocessing import Process, Pool
import time
def loop(num):
    time.sleep(5)
    return 12

if __name__ == '__main__':
    b = time.time()

    pool = Pool(processes=3)
    result = []
    for i in range(3):
        result.append(pool.apply_async(loop, args=(i,)))
    pool.close()
    pool.join()
    e = time.time()
    print("运行完啦{}".format(e - b))
    for i in result:
        print(i.get())